package com.xiaoxing.zhinenghuacangku_nanjinglu.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.contract.NanJingLu_DianBiaoJiHuaChuKuContract;
import com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.model.NanJingLu_DianBiaoJiHuaChuKuModel;


@Module
public class NanJingLu_DianBiaoJiHuaChuKuModule {
    private NanJingLu_DianBiaoJiHuaChuKuContract.View view;

    /**
     * 构建NanJingLu_DianBiaoJiHuaChuKuModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public NanJingLu_DianBiaoJiHuaChuKuModule(NanJingLu_DianBiaoJiHuaChuKuContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    NanJingLu_DianBiaoJiHuaChuKuContract.View provideNanJingLu_DianBiaoJiHuaChuKuView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    NanJingLu_DianBiaoJiHuaChuKuContract.Model provideNanJingLu_DianBiaoJiHuaChuKuModel(NanJingLu_DianBiaoJiHuaChuKuModel model) {
        return model;
    }
}